<%@ page language="java" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  	<head>
    	<title>榆林市烟草三项工作管理系统</title>
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		
		<link rel="stylesheet" type="text/css" href='css/login.css'>
		<script language="javascript" type="text/javascript">
			function check() {// 进行用户名、密码非空验证
				var userName = document.getElementById("username").value;
				var password = document.getElementById("password").value;
				if (userName == "" && password == "") {
					document.getElementById("errorMsg").innerHTML = "错误提示：用户名 密码不能为空！";
					return false;
				}
				if (userName == "") {
					document.getElementById("errorMsg").innerHTML = "错误提示：用户名不能为空！";
					return false;
				}
				if (password == "") {
					document.getElementById("errorMsg").innerHTML = "错误提示：用户密码不能为空！";
					return false;
				}
				return true;
			}
			function reloadcode(){
				var verify = document.getElementById('randomCode');
				document.getElementById("randomCode").innerHTML = "1234";
				//verify.setAttribute('src', '/utilAction.do?method=getRandomCode' + '&' + Math.random());
			}
		</script>
  	</head>
  
	<body bgcolor="#3A6EA5" onload="reloadcode()">
		<form id="form" name="form" method="post" action="fck.jsp" onSubmit="return check()" >
        	<div style="position:static; margin-top:80px;" align="center">
            	<table width="761" border="0" cellspacing="0" cellpadding="0" align="center">
                	<tr>
                    	<td width="761" height="122" background="images/login/login_top.gif" id="picTitle" align="center">&nbsp;</td>
                	</tr>
                	<tr>
                    	<td height="170" background="images/login/loginMiddle.gif">&nbsp;</td>
                	</tr>
                	<tr>
                    	<td height="145" background="images/login/loginBottom.gif" valign="top">
                        	<table width="100%" border="0" cellspacing="0" cellpadding="0">
                            	<tr>
                                	<td width="43%" height="43">&nbsp;</td>
                                	<td width="52%" align="right">
                                    	<marquee direction="left" onMouseOver="this.stop();" onMouseOut="this.start();" width="330"
                                        scrollamount="2"><font color=#ffffff>欢迎使用烟草三项工作监督管理系统,祝您工作愉快!</font></marquee>
                                	</td>
                                	<td width="5%">&nbsp;</td>
                            	</tr>
                            	<tr>
                                	<td height="50">&nbsp;</td>
                                	<td>
                                    	<table width="100%" border="0" cellpadding="0" cellspacing="3" class="fontWhite">
                                        	<tr>
                                            	<td width="80" align="right" valign="middle">
                                                	<b>用户名：</b></td>
                                            	<td width="144" align="left">
                                                	<input type="text" name="username" id="username" style="height:18px; width:130px; border:solid 1px #cadcb2; font-size:12px; color:#81b432;">
                                                </td>
                                            	<td width="159" rowspan="3"><img src="images/login/btn_login.gif" width="53" height="44" onClick="check()">
                                                	
                                                </td>
                                        	</tr>
                                        	<tr>
                                            	<td width="80" align="right" valign="middle">
                                                	<b>密　码：</b></td>
                                            	<td align="left">
                                                	<input type="password" name="password" id="password" style="height:18px; width:130px; border:solid 1px #cadcb2; font-size:12px; color:#81b432;">
                                                </td>
                                        	</tr>
                                        	<tr>
                                            	<td width="80" align="right" valign="middle"><b>验证码：</b></td>
                                            	<td align="left"><div id="randomCode"></div></td>
                                        	</tr>
                                    	</table>
                                    	<div id="errorMsg" style="color:red;font-size:12px"></div>
                                	</td>
                                	<td>&nbsp;</td>
                            	</tr>
                        	</table>
                    	</td>
                	</tr>
            	</table>
        	</div>
        	<div align="center"></div>
    	</form>
	</body>
</html>